package com.qst.service;

import com.qst.beans.DayIn;
import com.qst.beans.Order;
import com.qst.beans.OrderItem;
import com.qst.beans.PageUtils;
import org.aspectj.weaver.ast.Or;
import org.springframework.aop.target.LazyInitTargetSource;

import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Set;

public interface OrderService {
    int addItem(Order order);

    Order selectByUid(Integer id);

    int deleteItemByOid(Integer id);

    Order selectLastOrder();

    PageUtils<Order> getAllOrdersByUid(Integer page,Integer id);

    List<Order> getAllOrder();

    List<OrderItem> findByOid(Integer id);

    Order findOrderByOid(Integer oid);

    void updateOrder(Order order);

    List<DayIn> getAllOrdersComeInByDate();

    int updateOrderItem(OrderItem orderItem);

    List<OrderItem> getOrderItemsByPid(Integer pid);

    int addResponseToOrderItem(OrderItem orderItem);

    List<OrderItem> getAllOrderItem();
}
